<extend name="Base/commoncenter"/>
<block name="body">
    <ol class="breadcrumb">
        <li>总收入：<span style="color: red;font-weight: bold;">{$shouru}元</span></li>
        <li>总支出：<span style="color:#01ab01;font-weight: bold;">{$zhichu}元</span></li>
        <li class="text-right"><a href="{:U('Pay/recharge')}" class="btn btn-success">充值</a></li>
    </ol>

    <table class="table table-striped">
        <tr>
            <th>日期</th>
            <th>收入</th>
            <th>支出</th>
            <th>备注</th>                   
            <th>余额</th>
        </tr>
        <volist name='data' id='vo'>
            <tr>
                <td>{$vo.createdate|time_format}</td>
                <td>
                    <eq name='vo.mold' value='1'><span style="color: red;">+{$vo.money}元</span></eq>
                </td>
                <td>
                    <eq name='vo.mold' value='2'><span style="color: #01ab01;">-{$vo.money}元</span></eq>
                </td>
                <td>{$vo.remark}</td>
                <td>{$vo.balance}</td>   
                
            </tr>
        </volist>
    </table>
</block>